package io.fredia.femicro.auth.client.configuration;

import org.springframework.cloud.bus.jackson.RemoteApplicationEventScan;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;

import io.fredia.femicro.auth.client.config.ServiceAuthConfig;
import io.fredia.femicro.auth.client.config.UserAuthConfig;

/**
 * 自动配置
 * 
 * @author : Fredia
 * @since : 2018年3月13日
 * @version : v1.0.0
 */
@Configuration
@ComponentScan({ "io.fredia.femicro.auth.client", "io.fredia.femicro.auth.common.event" })
@RemoteApplicationEventScan(basePackages = "io.fredia.femicro.auth.common.event")
public class AutoConfiguration {
	@Bean
	ServiceAuthConfig getServiceAuthConfig() {
		return new ServiceAuthConfig();
	}

	@Bean
	UserAuthConfig getUserAuthConfig() {
		return new UserAuthConfig();
	}

}
